package com.bnlr.lrparking.model;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by Administrator on 2017/12/7 0007.
 */

public class WantBuyBean implements Parcelable {
    private int isByStage;
    private String spaceId;
    private int stageNumber;
    private String firstPay;
    private int bankId;
    private String eachStagePrice;
    private String username;
    private String userPhone;

    public int getIsByStage() {
        return isByStage;
    }

    public void setIsByStage(int isByStage) {
        this.isByStage = isByStage;
    }

    public String getSpaceId() {
        return spaceId;
    }

    public void setSpaceId(String spaceId) {
        this.spaceId = spaceId;
    }

    public int getStageNumber() {
        return stageNumber;
    }

    public void setStageNumber(int stageNumber) {
        this.stageNumber = stageNumber;
    }

    public String getFirstPay() {
        return firstPay;
    }

    public void setFirstPay(String firstPay) {
        this.firstPay = firstPay;
    }

    public int getBankId() {
        return bankId;
    }

    public void setBankId(int bankId) {
        this.bankId = bankId;
    }

    public String getEachStagePrice() {
        return eachStagePrice;
    }

    public void setEachStagePrice(String eachStagePrice) {
        this.eachStagePrice = eachStagePrice;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getUserPhone() {
        return userPhone;
    }

    public void setUserPhone(String userPhone) {
        this.userPhone = userPhone;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(this.isByStage);
        dest.writeString(this.spaceId);
        dest.writeInt(this.stageNumber);
        dest.writeString(this.firstPay);
        dest.writeInt(this.bankId);
        dest.writeString(this.eachStagePrice);
        dest.writeString(this.username);
        dest.writeString(this.userPhone);
    }

    public WantBuyBean() {
    }

    protected WantBuyBean(Parcel in) {
        this.isByStage = in.readInt();
        this.spaceId = in.readString();
        this.stageNumber = in.readInt();
        this.firstPay = in.readString();
        this.bankId = in.readInt();
        this.eachStagePrice = in.readString();
        this.username = in.readString();
        this.userPhone = in.readString();
    }

    public static final Parcelable.Creator<WantBuyBean> CREATOR = new Parcelable.Creator<WantBuyBean>() {
        @Override
        public WantBuyBean createFromParcel(Parcel source) {
            return new WantBuyBean(source);
        }

        @Override
        public WantBuyBean[] newArray(int size) {
            return new WantBuyBean[size];
        }
    };

    @Override
    public String toString() {
        return "WantBuyBean{" +
                "isByStage=" + isByStage +
                ", spaceId='" + spaceId + '\'' +
                ", stageNumber=" + stageNumber +
                ", firstPay='" + firstPay + '\'' +
                ", bankId=" + bankId +
                ", eachStagePrice='" + eachStagePrice + '\'' +
                ", username='" + username + '\'' +
                ", userPhone='" + userPhone + '\'' +
                '}';
    }
}
